package com.zj.fx.model.auto;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;

import java.util.Date;

public class AutoOriimport implements Serializable{
private static final long serialVersionUID=1L;

    
    @ApiModelProperty(value = "主键id")
    private String id;
        
    @ApiModelProperty(value = "供电所编号")
    private String supplyId;
        
    @ApiModelProperty(value = "供电所名称")
    private String supplyName;
        
    @ApiModelProperty(value = "分公司编号")
    private String subcompanyId;
        
    @ApiModelProperty(value = "分公司名称")
    private String subcompanyName;
        
    @ApiModelProperty(value = "任务年月")
    private String taskmonth;
        
    @ApiModelProperty(value = "任务类型描述")
    private String typeMemo;
        
    @ApiModelProperty(value = "对应系统指标id")
    private String targetId;
        
    @ApiModelProperty(value = "数值")
    private String value;
        
    @ApiModelProperty(value = "单位")
    private String unit;
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "导入时间")
    private Date createTime;
        
    @ApiModelProperty(value = "是否成功转换为结果（0：否，1：是）")
    private String istransfer;
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "结果转换时间")
    private Date transferTime;
    
        @JsonProperty("id")
    public String getId(){
            return id;
            }

    public void setId(String id) {
            this.id =  id;
            }
            @JsonProperty("supplyId")
    public String getSupplyId(){
            return supplyId;
            }

    public void setSupplyId(String supplyId) {
            this.supplyId =  supplyId;
            }
            @JsonProperty("supplyName")
    public String getSupplyName(){
            return supplyName;
            }

    public void setSupplyName(String supplyName) {
            this.supplyName =  supplyName;
            }
            @JsonProperty("subcompanyId")
    public String getSubcompanyId(){
            return subcompanyId;
            }

    public void setSubcompanyId(String subcompanyId) {
            this.subcompanyId =  subcompanyId;
            }
            @JsonProperty("subcompanyName")
    public String getSubcompanyName(){
            return subcompanyName;
            }

    public void setSubcompanyName(String subcompanyName) {
            this.subcompanyName =  subcompanyName;
            }
            @JsonProperty("taskmonth")
    public String getTaskmonth(){
            return taskmonth;
            }

    public void setTaskmonth(String taskmonth) {
            this.taskmonth =  taskmonth;
            }
            @JsonProperty("typeMemo")
    public String getTypeMemo(){
            return typeMemo;
            }

    public void setTypeMemo(String typeMemo) {
            this.typeMemo =  typeMemo;
            }
            @JsonProperty("targetId")
    public String getTargetId(){
            return targetId;
            }

    public void setTargetId(String targetId) {
            this.targetId =  targetId;
            }
            @JsonProperty("value")
    public String getValue(){
            return value;
            }

    public void setValue(String value) {
            this.value =  value;
            }
            @JsonProperty("unit")
    public String getUnit(){
            return unit;
            }

    public void setUnit(String unit) {
            this.unit =  unit;
            }
            @JsonProperty("createTime")
    public Date getCreateTime(){
            return createTime;
            }

    public void setCreateTime(Date createTime) {
            this.createTime =  createTime;
            }
            @JsonProperty("istransfer")
    public String getIstransfer(){
            return istransfer;
            }

    public void setIstransfer(String istransfer) {
            this.istransfer =  istransfer;
            }
            @JsonProperty("transferTime")
    public Date getTransferTime(){
            return transferTime;
            }

    public void setTransferTime(Date transferTime) {
            this.transferTime =  transferTime;
            }
    
                                                                                                        
public AutoOriimport(String id,String supplyId,String supplyName,String subcompanyId,String subcompanyName,String taskmonth,String typeMemo,String targetId,String value,String unit,Date createTime,String istransfer,Date transferTime){
    
            this.id = id;
    
            this.supplyId = supplyId;
    
            this.supplyName = supplyName;
    
            this.subcompanyId = subcompanyId;
    
            this.subcompanyName = subcompanyName;
    
            this.taskmonth = taskmonth;
    
            this.typeMemo = typeMemo;
    
            this.targetId = targetId;
    
            this.value = value;
    
            this.unit = unit;
    
            this.createTime = createTime;
    
            this.istransfer = istransfer;
    
            this.transferTime = transferTime;
    
        }

public AutoOriimport(){
        super();
        }

public String dateToStringConvert(Date date) {
        if(date!=null) {
        return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
        }
        return "";
        }


        }